﻿using Api1.Service;
using Api1.Util;
using System;
using NUnit.Framework;
namespace Api1
{
    class TestService
    {
        public static String card_no = OperateIniFile.ReadIniData("ANKE", "CardNo", "");
        [Test]
        public void TestSingleVersionService_ChenIn() {
            Console.WriteLine("卡号:"+card_no);
           var result= SingleVersionService.GetInstance().CheckIn(card_no);
            Console.WriteLine( Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
        [Test]
        public void TestSingleVersionService_ChenOut()
        {
            Console.WriteLine("卡号:" + card_no);
            var result = SingleVersionService.GetInstance().CheckOut(card_no);
            Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
    }
}
